import { defineStore } from "pinia";

export const useCountStore = defineStore('count',{
    //存动作函数
    actions:{
        increment(value:any){
            this.sum += value
        }
    },

    //真正存数据的地方
    state(){
        return{
            sum:8,
            school:"akdjk",
            address:"北邮"
        }
    },
    //computed
    getters:{
        bigSum(state){
            return state.sum * 10
        }
    }
})

